QuickTime 3 introduces a new movie export component routine that returns the same information that would have been previously stored in the componentManufacturer field of the registered spit components. A new export-specific component flag indicates that the export component implements the new protocol. This enables developers and QuickTime to differentiate between older components and those using the newer mechanism. By implementing the routine, the export component's componentManufacturer field can be used to differentiate components.
The new routine is MovieExportGetSourceMediaType . This routine returns an OSType through its mediaType parameter, which is interpreted in exactly the same way that the componentManufacturer was previously interpreted. If the export component requires a particular type of track to exist in a movie, it will return that media handler type (e.g., VideoMediaType, SoundMediaType, etc.) through the mediaType argument. If the export component works for an entire movie, it will return 0 through this parameter.
EXTERN_API( ComponentResult )
MovieExportGetSourceMediaType (MovieExportComponent ci,
OSType * mediaType);
The component flag that indicates this routine is implemented is:
movieExportMustGetSourceMediaType = 1L << 19,
If you implement the MovieExportGetSourceMediaType routine, you must register the component with this flag. Otherwise, the Movie Toolbox will not know to call the routine and will assume the older semantics for the componentManufacturer field.
As in the past, using this mechanism does not replace the need for implementing Validate in your export components. The new mechanism is only used to find candidate components.
| Previous | Chapter contents | Chapter top | Section top | Next |